package org.jackysoft.service;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Collection;

import org.jackysoft.data.IDataProvider;
import org.jackysoft.entity.Attachment;
import org.springframework.dao.DataAccessException;

public interface AttachmentService  extends IDataProvider<String,Attachment>{
     
	
	Collection<Attachment> upload(File[] uploads,String[] names) throws DataAccessException;
	
	Attachment upload(File uploads,String names) throws DataAccessException;
	
	Attachment save(File upload,String name,String base)throws DataAccessException;
		
	void create(File[] uploads,String[] names,long workflowId)throws DataAccessException,FileNotFoundException, IOException;

	void remove(Attachment bean, Long workflowId)throws DataAccessException;
}
